﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StorageSystem.HT
{
    internal sealed class StringEntry
    {
        public long Location;

        public long NextLocation;

        /*///////////////////////////////////////////////////////////////////////*/

        public string Key;
        
        public string Value;

        public StringEntry()
        {
            Location = -1; NextLocation = -1;
        }

        public StringEntry(string key, string value)
        {
            Location = -1; NextLocation = -1;
            Key = key; Value = value;
        }

        public StringEntry(string key, string value, long nextLocation)
        {
            Location = -1; NextLocation = nextLocation;
            Key = key; Value = value;
        }
    }

    internal sealed class BinaryEntry
    {
        public long Location;

        public long NextLocation;

        /*///////////////////////////////////////////////////////////////////////*/

        public string Key;

        public byte[] Value;

        public BinaryEntry()
        {
            Location = -1; NextLocation = -1;
        }

        public BinaryEntry(string key, byte[] value)
        {
            Location = -1; NextLocation = -1;
            Key = key; Value = value;
        }

        public BinaryEntry(string key, byte[] value, long nextLocation)
        {
            Location = -1; NextLocation = nextLocation;
            Key = key; Value = value;
        }
    }
}
